﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpObjects.SearchEngine.HtmlParsing.Html
{
    public class HtmlInlineTag : HtmlTag
    {
        private string name;


        public static readonly string[] TagNames = {"b", "em", "strong", "i", "sub", "sup", "del", "code", "br", "hr"};

        public override string Name { get { return this.name; } set { this.name = value; } }

        public override bool IsInline { get { return true; } set{ } }

        public HtmlInlineTag(HtmlGenericTag tag = null)
            : base(tag)
        {
            if(tag != null)
            {
                this.name = tag.Name;
            }
            else
            {
                this.name = string.Empty;
            }
        }

        public static HtmlTag CreateInstance(HtmlGenericTag tag)
        {
            return new HtmlInlineTag(tag);
        }
    }
}

 